package com.ziyun.pop.modules.production.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.production.entity.ErpOrderItemEntity;
import io.renren.common.utils.R;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * erp订单商品表
 * 
 * @author guizhao
 * @date 2018-08-22 14:44:58
 */
@Service("erpOrderItemDao")
public interface ErpOrderItemDao extends BaseMapper<ErpOrderItemEntity> {

    /**
     * 数据更新
     * @param map
     * @param eoItemId
     * @return
     */
    int updateByMap(@Param("map") Map<String, Object> map, @Param("eoItemId") Integer eoItemId);

    /**
     * 批量更新
     * @param updateMap
     * @param eoItemIds
     * @return
     */
    int updateBatchByMap(@Param("map") Map<String, Object> updateMap, @Param("eoItemIds") List<Integer> eoItemIds);

    /**
     * 商品ID查询
     * @param itemId
     * @return
     */
    ErpOrderItemEntity selectByItemId(Integer itemId);
}
